package com.bookstore.util;

import java.io.IOException;
import java.io.InputStream;

import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class ImageManager {

	  /**
     * Helper Functions
     * @throws IOException 
     */
    public static Bitmap getBitmapFromAsset(String strName, Context mCtx) throws IOException
    {
        AssetManager assetManager = mCtx.getAssets();

        InputStream istr = assetManager.open(strName);
        Bitmap bitmap = BitmapFactory.decodeStream(istr);

        return bitmap;
    }

}
